package com.design.model;

/**
 * 白糖装饰器
 *
 * @author lw
 * @date 2023/12/4 14:37
 **/
public class SugarDecorator extends CoffeeDecorator{
    public SugarDecorator(Coffee coffee) {
        super(coffee);
    }

    @Override
    public double cost() {
        return super.cost() + 0.5;
    }

    @Override
    public String description() {
        return super.description() + "加糖";
    }
}
